﻿@model SmartParking.Web.Models.CustomersModel
@{
    ViewBag.Title = "Mantenimiento de Clientes";
    var modelAsJSON = new HtmlString(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(Model));
}
@section HeaderScripts {
    <link rel="stylesheet" type="text/css" href="Content/css/jquery.mobile-1.2.0.css">
    <link rel="stylesheet" type="text/css" href="http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.min.css" />
    <link rel="stylesheet" type="text/css" href="http://dev.jtsage.com/cdn/simpledialog/latest/jquery.mobile.simpledialog.min.css" />
    <script type="text/javascript" src="http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.core.min.js"></script>
    <script type="text/javascript" src="http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.mode.calbox.min.js"></script>
    <script type="text/javascript" src="http://dev.jtsage.com/cdn/datebox/i18n/jquery.mobile.datebox.i18n.en_US.utf8.js"></script>
    <script type="text/javascript" src="http://dev.jtsage.com/cdn/simpledialog/latest/jquery.mobile.simpledialog2.min.js"></script>

    <script type='text/javascript'>
        $(document).ready(function () {
            window.MVJSON = @modelAsJSON;
        });

        function listAction(id) {
            return removeClient(window.MVJSON, "@Url.Action("DeleteCustomer")", id);
        }
    </script>
}

@Html.Partial("List", new SmartParking.Web.Models.ListModel(Model))
<br />
<a href="@Url.Action("Customer")" data-role="button" data-theme="c">Crear Cliente</a>